package com.tengju.user.domain.model.protocol;

import com.tengju.user.domain.model.user.UserInfo;

import java.time.LocalDateTime;

public class UserProtocolFactory {

    public static UserProtocol createUserProtocol(UserInfo userInfo,ProtocolVersion protocolVersion) {
        return new UserProtocol(userInfo.getUserId(),
                protocolVersion.getProtocolType(),
                protocolVersion,
                LocalDateTime.now());
    }
}
